php remove slash from string

69

remove slashes php -

<?php
$str = "Is your name O\'reilly?";

// Salida: Is your name O'reilly?
echo stripslashes($str);
?>

php remove slash from string -

echo preg_replace('/\\\\/', '', $var);

Comments

Submit
0 Comments